#ifndef USER_H
#define USER_H

#include <QString>
#include <QDate>
#include "UvoCommon.h"

class UVOCOMMONEXPORT User
{
public:
	enum UserState{
		UserOffline,
		UserAway,
		UserOnline
	};

private:
	int _userId;
	QString _userName;
	QString _userSurname;
	QString _userSurname2;
	QDate _userBirthdate;
	QString _company;
	QString _post;
	bool _hideBirthdate;

	QString _separator;

	UserState _state;

public:
	User();
	User(QString data);

	bool fromString(QString data);
	QString toString();

	int getId();

	void setState(User::UserState state);
	User::UserState getState();

	QString getName();
};

#endif // USER_H
